export const getTemporaryInfo = (type) => {
    return sessionStorage.getItem(type)
        ? JSON.parse(sessionStorage.getItem(type))
        : null;
};
export const setTemporaryInfo = (type, info) => {
    sessionStorage.setItem(type, JSON.stringify(info));
};
export const clearTemporaryInfo = () => {
    localStorage.clear();
};

export default {
    getTemporaryInfo,
    setTemporaryInfo,
    clearTemporaryInfo
};
